package com.mi.abstractfactory;

import com.mi.simplefactory.Car;

public class SSSS {

	private AbstractCarFactory carFactory;

	public AbstractCarFactory getCarFactory() {
		return carFactory;
	}

	public void setCarFactory(AbstractCarFactory carFactory) {
		this.carFactory = carFactory;
	}
	
	
	public Car sellCar(){
		return carFactory.newCar();
	}
}
